

project(datareceiver)

find_package(Qt5 COMPONENTS Widgets LinguistTools REQUIRED)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

QT5_CREATE_TRANSLATION(QM_FILES ${CMAKE_CURRENT_SOURCE_DIR})
file(GLOB_RECURSE  SRCS CONFIGURE_DEPENDS ./*.cpp)
source_group_by_dir(SRCS)

add_library(${PROJECT_NAME} SHARED
     ${SRCS}
)

target_compile_options(${PROJECT_NAME} PRIVATE -DS_DATARECEIVER_DLL)
target_link_libraries(${PROJECT_NAME} PRIVATE Qt::Widgets core bondlib qbtools uam msgcenter)